package com.cssl.common.entity.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品项数据
 */
@Data
@TableName("oms_order_item")
public class OrderItemEntity implements Serializable {
    @TableId
    private Long id;
    private Long orderId;
    private String orderSn;
    private Long spuId;
    private String spuName;
    private String spuPic;
    private String spuBrand; //品牌
    private Long categoryId; //商品分类id
    private Long skuId; //商品sku编号
    private String skuName;  //商品sku名字
    private String skuPic; //商品sku图片
    private BigDecimal skuPrice; //商品sku价格
    private Integer skuQuantity; //商品购买的数量
    /**
     * 商品销售属性组合(JSON)
     * "颜色:星河银","版本:8GB+256GB"
     */
    private String skuAttrsVals;
    private BigDecimal promotionAmount; //商品促销分解金额
    private BigDecimal couponAmount; //优惠券优惠分解金额
    private BigDecimal integrationAmount; //积分优惠分解金额
    private BigDecimal realAmount; //该商品经过优惠后的分解金额
    private Integer giftIntegration; //赠送积分
    private Integer giftGrowth;  //赠送成长值
}
